package com.lzs.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpy
 * @since 2020-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("s_allocation_detail")
@ApiModel(value="AllocationDetail对象", description="")
public class AllocationDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "调拨单号")
    private String allocationno;


    @ApiModelProperty(value = "新货位编码")
    private String locatorcode;

    @ApiModelProperty(value = "旧货位编码")
    private String oldlocatorcode;

    @ApiModelProperty(value = "旧仓库编码")
    private Long bwarehouseid;

    @ApiModelProperty(value = "新仓库编码")
    private Long awarehouseid;

    @ApiModelProperty(value = "商品id")
    private Long commodityid;

    @ApiModelProperty(value = "商品编码")
    private String commoditybar;

    @ApiModelProperty(value = "商品名称")
    private String commodityname;

    @ApiModelProperty(value = "数量")
    private Integer qty;

    @ApiModelProperty(value = "锁定库存的id")
    private Long lockstockid;

    @ApiModelProperty(value = "创建人id")
    private Long createid;

    @ApiModelProperty(value = "创建人")
    private String creator;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone="GMT+8")
    private Date createtime;

    @ApiModelProperty(value = "修改人id")
    private Long updateid;

    @ApiModelProperty(value = "修改人")
    private String updator;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone="GMT+8")
    private Date updatetime;


}
